//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    public abstract class LineFillProperties : FillProperties
    {
        internal static LineFillProperties ReadOptionalLineFillProperties(ReadContext context)
        {
            switch (context.ReaderLocalName)
            {
                case "noFill":
                    return context.ReadElement<NoFillProperties>();
                case "solidFill":
                    return context.ReadElement(() => new SolidColorFillProperties());
                case "gradFill":
                    return context.ReadElement<GradientFillProperties>();
                case "pattFill":
                    return context.ReadElement<PatternFillProperties>();
                default:
                    return null;
            }
        }
    }
}